home *** CD-ROM | disk | FTP | other *** search
/ Windows 6-Pak - Disc 3 / Windows 6-Pak (InfoMagic) (Disc 3) (1999).ISO / Web-Server-Components / aexec15i.zip / activeexec.asp next >
Text File  |  1998-09-21  |  426b  |  16 lines

  1. <%@ LANGUAGE="VBSCRIPT" %>
  2.  
  3. <%
  4. Set proc = Server.CreateObject("ActiveExec.Process")
  5.  
  6. CommandLine = "C:\WINNT\System32\PING.EXE www.activitysoft.com"
  7.  
  8. proc.Execute CommandLine
  9.  
  10. Response.Write "Program " & CommandLine & " executed with return code " & proc.ReturnCode & "<BR>"
  11. Response.Write "Output is:"
  12. Response.Write "<BLOCKQUOTE><PRE>"
  13. Response.Write proc.OutputStream
  14. Response.Write "</PRE></BLOCKQUOTE>"
  15. %>
  16.